import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
// 多选
export default async function a004(fd: IFeidaoAiBrowserComponent) {

	const checkall = fd.data.node.querySelector<HTMLInputElement>('[data-feidao-actions="click:a003"]');
	const box = fd.data.node.querySelectorAll<HTMLInputElement>('[name="ck"]:checked');
	const boxs = fd.data.node.querySelectorAll<HTMLInputElement>('[name="ck"]');

	if (box.length === boxs.length) {
		checkall.checked = true;
	} else {
		checkall.checked = false;
	}
}
